/**
 * Created by Jacky.Gao on 2017-01-25.
 */
import Tool from './Tool.js';
import ImportDialog from '../dialog/ImportDialog.js';

export default class ImportTool extends Tool {
    constructor(context,reportTable) {
        super(context);
        this.dialog = new ImportDialog(context,reportTable);
    }

    execute() {
        this.dialog.show();
    }

    getTitle() {
        return `${window.i18n.importExcel}`;
    }

    getIcon() {
        return `<div class="btn-group"><button type="button" class="btn btn-default"
    style="border:none;border-radius:0;text-align: center;padding:0;"><i class="icon-ym icon-ym-report-icon-import-excel"></i></button></div>`;
    }
}
